package tech.veedo.munchkin.services.backend;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import tech.veedo.munchkin.beans.basic.User;
import tech.veedo.munchkin.beans.backend.Mapping;

import java.util.HashMap;

public interface MappingService extends IService<Mapping> {

    boolean saveMapping(Mapping mapping, User user);

    boolean updateMapping(Mapping mapping, User user);

    Page<Mapping> pageMapping(HashMap<String, Object> params);

    boolean deleteMapping(Long id);

    boolean start(Long id);

    boolean stop(Long id);
}
